**************************
****September 20, 2010****
****Designed for CMS 6****
**************************

This package includes 3 items:
1) A ShareThis DynamicContent module - allows Editors to configure and add a ShareThis button at a desired location on a page
2) A FacebookLike DynamicContent module - allows Editors to configure and add a Facebook like button at a desired location on a page
3) DropDown Property - a new property which is used by the above DynamicContent modules, but can also be added to a CMS page like any other property.  The property contains custom settings which allows the item list for the drop down to be configured in Admin mode.


The code was written for the Alloy Technologies templates and CMS 6.  The associated directories and namespaces align with this but could easily be changed for other templates.  Other optimizations and edits are also possible. This is merely a conceptual starting point.  

To get this working in your Alloy Technologies environment:

1) Open the DemoTemplates project in Visual Studio (e.g. C:\EPiServer\Sites\<sitename>\DemoTemplates.csproj)
2) Copy the Templates folder in this package to the root folder for the DemoTemplates project *in Visual Studio*.  Be careful to ensure that you don't have existing files in the same locations with the same names.  Also note, if you copy directly to Visual Studio it will be automatically added to the project for you.  If you copy the folder in the Windows file system only you will need to add all files and folders under "Templates" in the attached.
3) Manually add the following items (ShareThis and FacebookLike) to the dynamicContent->controls node of episerver.config:

  <dynamicContent>
    <controls>
      <add description="ShareThis" name="ShareThis" type="EPiServer.Templates.Demo.DynamicContent.ShareThis.ShareThisDC, EPiServer.Templates.Demo" />
      <add description="FacebookLike" name="Facebook Like" type="EPiServer.Templates.Demo.DynamicContent.FacebookLike.FacebookLikeDC, EPiServer.Templates.Demo" />
    </controls>
  </dynamicContent>

4) Build the DemoTemplates project
5) Restart IIS or your website to ensure the changes to episerver.config are picked up
6) Navigate to a page in the website that has DynamicContent enabled and test the two new items


KNOWN ISSUE: If attempting to add the ShareThis button twice on a page it may not render for the second item.  The presumed fix for this is to call RegisterClientScriptBlock() for the script being added to the page.